export const modalFormConfig = {
  labelWidth: "100px",
  itemLayout: {
    padding: "10px 40px",
  },
  colLayout: { span: 24 },
  alwaysShow: true,
  formItems: [
    {
      field: "pid",
      type: "select",
      label: "上级菜单",
      placeholder: "请选择上级菜单",
      options: []
    },
    {
      field: "name",
      type: "input",
      label: "菜单名称",
      placeholder: "请输入菜单名称",
      rules: [{ required: true, message: "请输入菜单名称", trigger: "blur" }],
    },
    {
      field: "url",
      type: "input",
      label: "菜单URL",
      placeholder: "请输入菜单URL",
      rules: [{ required: true, message: "请输入菜单URL", trigger: "blur" }],
    },
    {
      field: "code",
      type: "input",
      label: "菜单编码",
      placeholder: "请输入菜单编码",
      rules: [{ required: true, message: "请输入菜单编码", trigger: "blur" }],
    },
    {
      field: "order",
      type: "number",
      label: "排序码",
      placeholder: "请输入排序码",
      otherOptions: {
        type: "number",
      }
    },
  ],
};
